<?php
	if(!isset($rootdir)) $rootdir = "/home/nrb62281/public_html";
	include_once($rootdir . "/wowsig/DataSources/nathansinfodb.php");
	
	class databaseManager{
		private $databaseSource;
		function __construct(){
			$this->databaseSource = new nathansinfodbDataSource;
		}
		
		public function databaseSource($newDatabaseSource){
			$this->databaseSource = $newDatabaseSource;
		}
		
		public function getCharacter($characterName, $realmName, $region){
			return $this->databaseSource->getCharacter($characterName, $realmName, $region);
		}
		public function isCharacterRecent($characterName, $realmName, $region){
			return $this->databaseSource->isCharacterRecent($characterName, $realmName, $region);
		}
		public function getCharacterTimeout(){
		}
		public function setCharacterTimeout(){
		}
	}
?>